package leetcode.lt100;

class Solution_100 {

    public static void main(String[] args) {
        new Solution_100();
    }

    public boolean isSameTree(TreeNode p, TreeNode q) {
        return (p == null && q == null) || (p != null && q != null && p.val == q.val && isSameTree(p.left, q.left) && isSameTree(p.right, q.right));
    }


}